package JUNHO.thead;

public class TesteThread implements Runnable
{

	public static void main(String[] args)
	{
		Pira pira = new Pira();
		Thread t = new Thread(new TesteThread(pira));
		Thread t2 = new Thread(new TesteThread(pira));
		t.start();
		t2.start();
	}

	private Pira pira;
	
	public TesteThread(Pira pira)
	{
		this.pira = pira;
	}
	
	@Override
	public void run()
	{
		pira.normal();
		pira.unique();
		pira.normal();
	}
	
}

class Pira 
{
	public void normal()
	{
		System.out.println();
	}
	
	public synchronized void unique()
	{
		System.out.println();
	}
}